import router from './router'
import { getToken, setLocation } from '@/utils/auth'

router.beforeEach((to, from, next) => {
  next()
  if (getToken()) {
    next()
  } else {
    setLocation('bim')
    // location.href = 'https://imis.webuilding.net.cn'
  }
})
